Release 10.1A: OpenEdge Development:
Programming Interfaces


get-complete-dbname-list procedure

Get complete list of connected databases by calling src/auditing/_get-db-list.p. It also handles cases where the database is on the AppServer, if there is connection to the AppServer. The list contains entries separated by CHR(1). Each entry contains the logical database name. It might also contain some additional information such as "read-only" or "appserver". The list of possible entries is defined in src/auditing/include/_aud-std.i.

Parameters:

OUTPUT pcList AS CHARACTER

List of databases, each database is separated by the value of CHR(1).

Example:

Define variable cList as char. 
Define variable cdbInfo as char. 
Define variable iLoop as int. 
{auditing/include/_aud-utils.i} 
Run get-complete-dbname-list IN hAuditUtils (output cList). 
DO iLoop = 1 TO NUM-ENTRIES(cList, CHR(1)): 
           ASSIGN cdbInfo = ENTRY(iLoop, cList, CHR(1)). 
End. 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095